package cn.kgc.easybuy.service;

import cn.kgc.easybuy.pojo.BuyCar;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * @program: yingzi-wants-to-sleep
 * @description:
 * @author: 敖成
 * @create: 2025-09-18 16:27
 **/

public interface BuyCarService {

    PageInfo<BuyCar> selectBuyCarByPage(Map<String,Object> params);

    boolean addBuyCar(BuyCar buyCar);

    boolean updateBuyCar(BuyCar buyCar);

    boolean deleteBuyCarById(int id);

    boolean deleteBuyCarByUserId(Integer userId);

    BuyCar addBuyCarNum(int userId, int pid);

    List<BuyCar> selectAllBuyCar(Integer userId);
}
